package com.koron.common.core.business.datadict.mapper;

import com.koron.common.core.business.datadict.bean.po.SysDataDictDetail;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 系统管理-数据字典详情(SysDataDictDetail)表数据库访问层
 *
 * @author jzp
 * @since 2021-02-02 09:56:13
 */
public interface SysDataDictDetailMapper {

    int insert(SysDataDictDetail sysDataDictDetail);

    int update(SysDataDictDetail sysDataDictDetail);

    int deleteById(String id);

    int count(SysDataDictDetail sysDataDictDetail);

    List<SysDataDictDetail> getDetailsByDictionaryAndAppId(@Param("dictionary") String dictionary, @Param("appid") String appid);

    SysDataDictDetail getByDictionaryAndAppidAndKey(@Param("dictionary") String dictionary, @Param("appid") String appid, @Param("key") String key);

    SysDataDictDetail getByDictionaryAndAppidAndValue(@Param("dictionary")String dictionary, @Param("appid")String appid, @Param("value")String value);

    List<SysDataDictDetail> getByDictionary(@Param("dictionary") String dictionary);

    SysDataDictDetail getById(@Param("id") String id);

    List<SysDataDictDetail> getAll();

    int updateBatch(@Param("defectBeans") List<SysDataDictDetail> defectBeans);
}